package com.kaiwukj.android.ufamily.mvp.contract;

import android.content.Context;

import com.kaiwukj.android.mcas.mvp.IModel;
import com.kaiwukj.android.mcas.mvp.IView;
import com.kaiwukj.android.ufamily.mvp.http.entity.base.ListResp;
import com.kaiwukj.android.ufamily.mvp.http.entity.params.CommentParams;
import com.kaiwukj.android.ufamily.mvp.http.entity.result.CommentResult;

import java.util.List;

import io.reactivex.Observable;

/**
 * @author Charles
 * @date 2019/8/22.
 * description：Kaiwu
 */
public interface RecycleVideoContract {

    interface View extends IView {
        Context getCtx();

        void LikeSuccess();

        void LikeCancelSuccess();

        void getCommentList(List<CommentResult> data);

        void commentSuccess();
    }

    interface Model extends IModel {
        Observable<Integer> postLike(int id);

        Observable<Integer> postLikeCancel(int id);

        Observable<ListResp<CommentResult>> requestCommentList(int id, int startId);

        //发表评论或者回复他人
        Observable<Integer> requestCommentOther(CommentParams request);
    }

}
